﻿@using JPW.OnlinePaperSubmissionSystem.Project
<style>
    .modal-dialog {
        width: 70%;
        height: 70%;
    }
</style>
<form name="createOrEditManuscriptForm" role="form" novalidate class="form-validation">
    <div class="modal-header">
        <h4 class="modal-title">
            <h4 class="modal-title">
                <span ng-if="vm.manuscript.id">@L("UpdateManuscript")</span>
                <span ng-if="!vm.manuscript.id">@L("CreateManuscript")</span>
            </h4>
        </h4>
    </div>
    <div class="modal-body" style="float:left;">
        @*<div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="ManuscriptStatusID" ng-model="vm.manuscript.manuscriptStatusID">
                <label>ManuscriptStatusID</label> 
            </div>*@
        @*<div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="UserId" ng-model="vm.manuscript.userId">
                <label>UserId</label>
            </div>*@
        <div class="form-group form-md-line-input" style="width:45%;float:left;margin-right:30px">
            @*<input class="form-control" type="text" name="ManuscriptTypeID" ng-model="vm.manuscript.manuscriptTypeID">*@
            <select class="form-control edited" name="ManuscriptTypeID"
                    kendo-drop-down-list
                    k-auto-bind="false"
                    k-data-text-field="'name'"
                    k-data-value-field="'id'"
                    k-data-source="vm.manuscriptType"
                    ng-model="vm.manuscript.manuscriptTypeID"></select>
            <label>稿件类别</label>
        </div>
        <div class="form-group form-md-line-input" style="width:45%;float:left;margin-right:30px">
            @*<input class="form-control" type="text" name="ColumnTypeID" ng-model="vm.manuscript.columnTypeID">*@
            <select class="form-control edited" name="ColumnTypeID"
                    kendo-drop-down-list
                    k-auto-bind="false"
                    k-data-text-field="'name'"
                    k-data-value-field="'id'"
                    k-data-source="vm.columnType"
                    ng-model="vm.manuscript.columnTypeID"></select>
            <label>栏目类别</label>
        </div>
        <div class="form-group form-md-line-input" style="width:45%;float:left;margin-right:30px">
            <input class="form-control" type="text" name="LongTitle" ng-model="vm.manuscript.longTitle">
            <label>稿件标题</label>
        </div>
        <div class="form-group form-md-line-input" style="width:45%;float:left;margin-right:30px">
            <input class="form-control" type="text" name="ShortTitle" ng-model="vm.manuscript.shortTitle">
            <label>短标题</label>
        </div>
        <div class="form-group form-md-line-input" style="width:45%;float:left;margin-right:30px">
            <input class="form-control" type="text" name="Summary" ng-model="vm.manuscript.summary">
            <label>摘要</label>
        </div>
        <div class="form-group form-md-line-input" style="width:45%;float:left;margin-right:30px">
            <input class="form-control" type="text" name="KeyWord" ng-model="vm.manuscript.keyWord">
            <label>关键词</label>
        </div>
        @*<div class="form-group form-md-line-input" style="width:45%;float:left;margin-right:30px">
            <select class="form-control edited" name="manuscriptStatusID"
                    kendo-drop-down-list
                    k-auto-bind="false"
                    k-data-text-field="'manuscriptStatusName'"
                    k-data-value-field="'id'"
                    k-data-source="vm.manuscriptStatus"
                    ng-model="vm.manuscript.manuscriptStatusID"></select>
            <label>稿件状态</label>
        </div>*@
        <div class="form-group form-md-line-input" style="width:100%;float:left;">
            <input class="form-control" type="text" name="ManuscriptDescription" ng-model="vm.manuscript.manuscriptDescription">
            <label>稿件描述</label>
        </div>
        <div class="form-group form-md-line-input" style="width:100%;float:left;">
            <label>稿件内容</label>
            <textarea kendo-editor options="vm.editor" name="ManuscriptContent" ng-model="vm.manuscript.manuscriptContent"></textarea>
        </div>
        @*<div class="form-group form-md-line-input">
                <input class="form-control" type="text" name="ContributeTime" ng-model="vm.manuscript.contributeTime">
                <label>ContributeTime</label>
            </div>*@
    </div>
    <div class="modal-footer">
        <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
        <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="createManuscriptForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
    </div>
</form>
